package com.yitiao.designmodel.struct.decorator;

/**
 * 装饰器模式测试类
 */
public class MainTest {
    public static void main(String[] args) {
        // 创建直播
        MyLive myLive = new MyLive();
        myLive.startLive();

        System.out.println("增强直播类---------");
        // 开启美颜功能
        LiveFaceDecorator faceDecorator = new LiveFaceDecorator(myLive);
        faceDecorator.startLive();
        // 开启声卡
        LiveVoiceDecorator voiceDecorator = new LiveVoiceDecorator(myLive);
        voiceDecorator.startLive();

    }
}
